#include "GUI/gui.hpp"
#include "config.h"

using std::cout;
using std::endl;

int main(int argc, char** argv)
{
	// init log system
	if(!log::instance().load())
	{
		cout << "stdlog::load() failed" << endl; 
		return false;
	}

	// init param
	Config1* param = Config1::Instance();

	if(!param->load())
	{
		Log("Param load failed", L_WARN);
	}	
	
	// init Gui
	GUI* gui = GUI::Instance();

	if (gui)
	{
		gui ->Init(argc, argv);
		gui ->CreateUI();
		gui ->MainLoop();
	}
	
	return 0;
}

 
